package com.comeon.encapsulation.b;

public class User {
    private int id;
    private  String name;
    private boolean woman;

    public void printUserInfo(){
        System.out.println("Userid"+id);
        System.out.println("Username"+name);
        System.out.println("User is a woman?"+woman);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isWoman() {
        return woman;
    }

    public void setWoman(boolean woman) {
        this.woman = woman;
    }
}
